GtkStyle: Handle scrollbar buttons.
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 23 Oct 2010 16:25:18 +0000 (18:25 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:38:25 +0000 (15:38 +0100)
gtk/gtkstyle.c

index c7ce8bbb2eae461128c3fca5a24cf29d777df97f..7e8906aad7be96b255f1676258b85d0d4eec9394 100644 (file)
@@ -1820,8 +1820,17 @@ transform_detail_string (const gchar     *detail,
       gtk_style_context_add_class (context, "button");
       gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
     }
+  else if ((detail[0] == 'h' || detail[0] == 'v') &&
+           strncmp (&detail[1], "scrollbar_", 10) == 0)
+    {
+      gtk_style_context_add_class (context, "button");
+      gtk_style_context_add_class (context, "scrollbar");
+    }
   else if (strcmp (detail, "slider") == 0)
-    gtk_style_context_add_class (context, "slider");
+    {
+      gtk_style_context_add_class (context, "slider");
+      gtk_style_context_add_class (context, "scrollbar");
+    }
   else if (g_str_has_prefix (detail, "cell_"))
     {
       GtkRegionFlags row, col;